home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1475 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  4.8 KB  |  116 lines

  1. on(press){
  2.    if(_root.inven._currentframe == 1)
  3.    {
  4.       if(_root.micon._currentframe == 40 && _root.range == true)
  5.       {
  6.          _root.next_dis1 = 2;
  7.          _root.next_txt1 = "Hey, that\'s a great idea.  I\'ll have a girlfriend in no time...  in JAIL!  ARE YOU NUTS?";
  8.       }
  9.       else if(_root.micon._currentframe == 41 && _root.range == true)
  10.       {
  11.          _root.next_dis1 = 2;
  12.          _root.next_txt1 = "I don\'t think I want to make Ms. Aventez cry.";
  13.       }
  14.       if(_root.micon._currentframe == 1 && _root.range == true)
  15.       {
  16.          _root.next_dis1 = 2;
  17.          _root.next_txt1 = "I wanna look decent for the dance tonight.  If I touch her, I\'ll have so much grease on me that I\'ll break out like no ones bussiness!";
  18.       }
  19.       if(_root.micon._currentframe == 2)
  20.       {
  21.          _root.next_dis1 = 2;
  22.          _root.next_txt1 = "Good Ole Ms. Aventez.  Cookin\' up the goods since 1987.  Bless her clogged up heart.";
  23.       }
  24.       if(_root.micon._currentframe == 32 && _root.txt_number <= 1 && _root.range == true && _root.talk7 == 5)
  25.       {
  26.          _root.sfx.gotoAndStop(3);
  27.          _root.micon.gotoAndStop(1);
  28.          _root.txt_number = 3;
  29.          _root.next_dis3 = 9;
  30.          _root.di3 = 263;
  31.          _root.next_txt3 = "Thank you so much Hewitt, I think tomorrow you might be getting something very special for lunch.";
  32.          _root.next_dis2 = 9;
  33.          _root.di2 = 264;
  34.          _root.next_txt2 = "I really have to go now, I\'m already late!";
  35.          _root.next_dis1 = 2;
  36.          _root.di1 = 265;
  37.          _root.next_txt1 = "Ok I\'m glad I could help out.";
  38.       }
  39.       if(_root.micon._currentframe == 4 && _root.txt_number <= 1 && _root.range == true)
  40.       {
  41.          if(_root.talk7 == 0)
  42.          {
  43.             _root.talk7 = 1;
  44.             _root.txt_number = 3;
  45.             _root.next_dis3 = 9;
  46.             _root.di3 = 250;
  47.             _root.next_txt3 = "What can I do for ya today little Hewitt?";
  48.             _root.next_txt2 = "I\'ll take the daily special if you don\'t mind.";
  49.             _root.di2 = 251;
  50.             _root.next_dis2 = 2;
  51.             _root.next_txt1 = "Not at all Hewitt.  Come back anytime darling so you can grow up nice and strong.";
  52.             _root.di1 = 252;
  53.             _root.next_dis1 = 9;
  54.          }
  55.          else if(_root.talk7 == 1)
  56.          {
  57.             _root.next_dis1 = 9;
  58.             _root.di1 = 253;
  59.             _root.next_txt1 = "Sweetie, you haven\'t finished the food I already gave you.  Come back later after you\'re all done and you may get another helping.";
  60.          }
  61.          else if(_root.talk7 == 2)
  62.          {
  63.             _root.talk7 = 1;
  64.             _root.txt_number = 2;
  65.             _root.next_dis2 = 2;
  66.             _root.di2 = 254;
  67.             _root.next_txt2 = "I\'m all done, could I have some more?";
  68.             _root.next_txt1 = "Your a hungry little fellow. Aren\'t you? Well a growing boy needs his food... Here\'s a another helping.";
  69.             _root.di1 = 255;
  70.             _root.next_dis1 = 9;
  71.          }
  72.          else if(_root.talk7 == 3)
  73.          {
  74.             _root.talk7 = 4;
  75.             _root.txt_number = 3;
  76.             _root.next_dis3 = 2;
  77.             _root.di3 = 254;
  78.             _root.next_txt3 = "I\'m all done, could I have some more?";
  79.             _root.next_txt2 = "Ok Hewitt this is your final helping, I\'ve never seen you this hungry before little man.";
  80.             _root.di2 = 256;
  81.             _root.next_dis2 = 9;
  82.             _root.next_dis1 = 2;
  83.             _root.di1 = 257;
  84.             _root.next_txt1 = "Yeh I uh... I skipped breakfast, and this food is so great too.";
  85.          }
  86.          else if(_root.talk7 == 4)
  87.          {
  88.             _root.talk7 = 5;
  89.             _root.txt_number = 5;
  90.             _root.next_dis5 = 9;
  91.             _root.di5 = 258;
  92.             _root.next_txt5 = "I\'m sorry Hewitt we\'re all out of food for today.";
  93.             _root.next_dis4 = 2;
  94.             _root.di4 = 259;
  95.             _root.next_txt4 = "Actually, I\'m stuffed. I was wondering if you could help me find a date to the school dance tonight.";
  96.             _root.next_dis3 = 9;
  97.             _root.di3 = 260;
  98.             _root.next_txt3 = "Wish I could sweetheart, but I\'m kind of in a pickle right now.";
  99.             _root.next_dis2 = 9;
  100.             _root.di2 = 261;
  101.             _root.next_txt2 = "Ya see, I had these 2 movie tickets for tonight but I can\'t figure out where I\'ve put them.";
  102.             _root.next_dis1 = 2;
  103.             _root.di1 = 262;
  104.             _root.next_txt1 = "Hmm, Maybe I can help.";
  105.          }
  106.          else if(_root.talk7 == 5)
  107.          {
  108.             _root.txt_number = 1;
  109.             _root.next_dis1 = 9;
  110.             _root.di1 = 258;
  111.             _root.next_txt1 = "I\'m sorry Hewitt we\'re all out of food for today.";
  112.          }
  113.       }
  114.    }
  115. }
  116.